github.com/refraction-networking/utls.Config.rand (method)

34 uses

	github.com/refraction-networking/utls (current package)
		common.go#L1046: 		if _, err := io.ReadFull(c.rand(), c.SessionTicketKey[:]); err != nil {
		common.go#L1108: 		if _, err := io.ReadFull(c.rand(), newKey[:]); err != nil {
		common.go#L1152: func (c *Config) rand() io.Reader {
		conn.go#L1026: 		outBuf, err = c.out.encrypt(outBuf, data[:m], c.config.rand())
		handshake_client.go#L121: 	_, err := io.ReadFull(config.rand(), hello.random)
		handshake_client.go#L133: 		if _, err := io.ReadFull(config.rand(), hello.sessionId); err != nil {
		handshake_client.go#L167: 			keyShareKeys.ecdhe, err = generateECDHEKey(config.rand(), X25519)
		handshake_client.go#L172: 			if _, err := io.ReadFull(config.rand(), seed); err != nil {
		handshake_client.go#L194: 			keyShareKeys.ecdhe, err = generateECDHEKey(config.rand(), curveID)
		handshake_client.go#L313: 		_, err = io.ReadFull(c.config.rand(), hello.random)
		handshake_client.go#L859: 		certVerify.signature, err = key.Sign(c.config.rand(), signed, signOpts)
		handshake_client_tls13.go#L348: 		key, err := generateECDHEKey(c.config.rand(), curveID)
		handshake_client_tls13.go#L988: 	sig, err := cert.PrivateKey.(crypto.Signer).Sign(c.config.rand(), signed, signOpts)
		handshake_server.go#L240: 	_, err := io.ReadFull(c.config.rand(), serverRandom)
		handshake_server_tls13.go#L150: 	if _, err := io.ReadFull(c.config.rand(), hs.hello.random); err != nil {
		handshake_server_tls13.go#L262: 	key, err := generateECDHEKey(c.config.rand(), ecdhGroup)
		handshake_server_tls13.go#L870: 	sig, err := hs.cert.PrivateKey.(crypto.Signer).Sign(c.config.rand(), signed, signOpts)
		handshake_server_tls13.go#L1019: 	if _, err := c.config.rand().Read(ageAdd); err != nil {
		key_agreement.go#L64: 	preMasterSecret, err := priv.Decrypt(config.rand(), ciphertext, &rsa.PKCS1v15DecryptOptions{SessionKeyLen: 48})
		key_agreement.go#L85: 	_, err := io.ReadFull(config.rand(), preMasterSecret[2:])
		key_agreement.go#L94: 	encrypted, err := rsa.EncryptPKCS1v15(config.rand(), rsaKey, preMasterSecret)
		key_agreement.go#L185: 	key, err := generateECDHEKey(config.rand(), curveID)
		key_agreement.go#L233: 	sig, err := priv.Sign(config.rand(), signed, signOpts)
		key_agreement.go#L300: 	key, err := generateECDHEKey(config.rand(), curveID)
		ticket.go#L331: 	if _, err := io.ReadFull(c.rand(), iv); err != nil {
		u_handshake_client.go#L243: 	_, err := io.ReadFull(config.rand(), hello.random)
		u_handshake_client.go#L255: 		if _, err := io.ReadFull(config.rand(), hello.sessionId); err != nil {
		u_handshake_client.go#L477: 		_, err = io.ReadFull(c.config.rand(), hello.random)
		u_parrots.go#L2791: 		_, err := io.ReadFull(uconn.config.rand(), hello.Random)
		u_parrots.go#L2809: 	_, err = io.ReadFull(uconn.config.rand(), grease_bytes)
		u_parrots.go#L2835: 		_, err = io.ReadFull(uconn.config.rand(), sessionID[:])
		u_parrots.go#L2888: 					ecdheKey, err := generateECDHEKey(uconn.config.rand(), X25519)
		u_parrots.go#L2893: 					if _, err := io.ReadFull(uconn.config.rand(), seed); err != nil {
		u_parrots.go#L2909: 					ecdheKey, err := generateECDHEKey(uconn.config.rand(), curveID)